package ru.averta.notes.domain.ajax;

import java.util.List;
import java.util.Map;

/**
 * Какой-то ответ клиенту
 * @author fedor.belov
 */
public class AjaxSubjectCreateAnswer {

    private Map<String, String> fieldErrors;
    private List<String> globalErrors;
    private boolean hasErrors = false;
    private boolean display = false;

    public boolean isDisplay() {
        return display;
    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public Map<String, String> getFieldErrors() {
        return fieldErrors;
    }

    public void setFieldErrors(Map<String, String> errors) {
        this.fieldErrors = errors;
    }

    public List<String> getGlobalErrors() {
        return globalErrors;
    }

    public void setGlobalErrors(List<String> globalErrors) {
        this.globalErrors = globalErrors;
    }
    
    public boolean isHasErrors() {
        return hasErrors;
    }

    public void setHasErrors(boolean hasErrors) {
        this.hasErrors = hasErrors;
    }
    
}
